const mysql2 = require('mysql2')

const db = mysql2.createPool({
  host: '192.168.31.166',
  user: 'root',
  password: '88888888',
  database: 'pudding-cms',
  // 日期不带T
  dateStrings: 'DATETIME',
})
  .promise()

module.exports = db
